package Animal;

/**
 * @author 孤雪唯方
 * @date 2025/05/12
 * @description 鱼类
 */
public class Fish extends Animal implements ISwimming{
    public Fish(String name, int age) {
        super(name, age);
    }

    /**
     * 鱼吃东西
     */
    @Override
    public void eat() {
        System.out.println(this.name + "在吃海藻~~~");
    }

    /**
     * 鱼在水里游
     */
    @Override
    public void swim() {
        System.out.println(this.name + "在用尾巴游泳~~~");
    }
}
